您未登录或登录超时，<i id="time-fwenfewfwefowe">5</i>秒后跳转<a href="javascript:tologin();">登录</a>

    <script>
        var time = 5;
        var elem = document.getElementById('time-fwenfewfwefowe');

        var timeout = function () {
            if (time-- > 0) {
                elem.value = time;
                setTimeout(timeout, 1000)
            }
            else
                tologin();

        }

        timeout();

        var tologin = function () {
            parent.window.location.href = '/login.do';
        }
    </script>
